package apt.action;

import java.util.List;

import apt.bean.CategoryBean;
import apt.dao.CategoryDao;

import com.opensymphony.xwork2.ActionSupport;

public class CategoryAction extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private CategoryBean categoryBean;
	private List<CategoryBean> listCategory;
	private CategoryDao categoryDao = new CategoryDao();
	
	public String listAllCategory()
	{
		listCategory = categoryDao.getCategory();
		return SUCCESS;
	}

	public CategoryBean getCategoryBean() {
		return categoryBean;
	}

	public void setCategoryBean(CategoryBean categoryBean) {
		this.categoryBean = categoryBean;
	}

	public List<CategoryBean> getListCategory() {
		return listCategory;
	}

	public void setListCategory(List<CategoryBean> listCategory) {
		this.listCategory = listCategory;
	}

	public CategoryDao getCategoryDao() {
		return categoryDao;
	}

	public void setCategoryDao(CategoryDao categoryDao) {
		this.categoryDao = categoryDao;
	}
	
	
	
}
